<template>
    <el-select v-model="searchForm[data['prop']]" :placeholder="data['placeholder']" clearable style="width: 180px" filterable :disabled="data['disabled']">
        <el-option v-for="item in data.options" :key="item.value" :label="item.name? item.name : item.label" :value="item.value"></el-option>
    </el-select>
</template>

<script setup>

const props = defineProps({
    data: {
        type: Object,
        default: () => {}
    }
});

const searchForm = defineModel('searchForm');

</script>

<style lang="scss" scoped>

</style>